Specifying JDBC Driver Connection URLs
The connection URL format depends on whether you are using SSL encryption. See "Configuring the SequeLink® Proxy Server" for more information about SSL encryption and certificate-based authentication.
NOTE: SequeLink Server for DB2 for z/OS does not support SSL. To use SSL encryption in a DB2 for z/OS environment, use the SequeLink Proxy Server.
If not using SSL encryption over the SequeLink Proxy Server, the connection URL format is:
If using SSL encryption over the SequeLink Proxy Server, the connection URL format is:
where:
hostname is the TCP/IP address or TCP/IP host name of the SequeLink server to which you are connecting.NOTE: Untrusted applets cannot open a socket to a machine other than the originating host. See "Using the SequeLink® Proxy Server" for more information about untrusted applets.port is the TCP/IP port on which the SequeLink server is listening. A default installation of SequeLink Server uses the port 19996.key=value specifies connection properties. Refer to the SequeLink Developer's Reference for a list of connection properties and their valid values.
Connection URL Examples
The following examples show some typical JDBC driver connection URLs:
jdbc:sequelink://sequelinkhost:19996; jdbc:sequelink://189.23.5.25:19996;user=john; password=whatever jdbc:sequelink://189.23.5.132:19996;databaseName=stores7 jdbc:sequelink://189.23.5.68:19996;databaseName=pubs; HUser=john;HPassword=whatever jdbc:sequelink://sequelinkhost:4006; databaseName=pubs;DBUser=john;DBPassword=whatever jdbc:sequelink:ssl://mysecurehost:9500; cipherSuites=SSL_DH_anon_WITH_RC4_128_MD5 jdbc:sequelink:ssl://mysecurehost:9502; cipherSuites=SSL_DHE_RSA_WITH_DES_CBC_SHA; certificateChecker=CheckAgainstCertificateFromJarThe preceding examples do not show the user and password connection properties. Typically, these properties are specified in the connection properties stored in the java.util.Properties object, which is supplied as a parameter to the getConnection method.